package scheduler;

public class AuthenticationPair extends TextValuePair{

	int	PairNo;	// valid values 1 to 5 

		public void loadPair(int pairNo, String userId) {
		// This function will retrieve the parameter from the database

		String rawValue = null; // unencrypted value
		this.PairNo = pairNo;

		switch (pairNo) {
		case 0:
			this.setText("Password");
			rawValue = userId;
			break;
		case 1:
			this.setText("IDNumber");
			rawValue = "610741234081";
			break;
		case 2:
			this.setText("PinNumber");
			rawValue = "1234";
			break;
		case 3:
			this.setText("Text Pair 3");
			rawValue = "Text Pair 3";
			break;
		case 4:
			this.setText("Text Pair 5");
			rawValue = "Text Pair 5";
			break;
		}
		this.setValue(this.encryptString(rawValue, null));
	}

		public void print() {
			System.out.println("\t\tCredentials Pair[" + this.PairNo + "] textName [" + this.text + "] Value [" + this.value + "]");
		}
	
}